﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="SearchBaidu" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>多巴拉搜索</title>
    <link href="Css/baidu.css" rel="Stylesheet" />
    
    
    
<style type="text/css">   

.page{   
 width:680px;   
 margin:10px auto;   
 text-align:center;   
 } 
 
h2{ padding:0px; margin:0px;}
  
    
 h2{ margin:10px; background:#eee;}   
/*----------------------- 内容模块 */  
.tab_mo{   
border:1px solid #ccc;   
border-top:none;   
padding:10px;   
}   
/*----------------------- 菜单模块 */  
.tab{   
 border-bottom:1px solid #ccc; /* 菜单模块的底部边框，也就是内容模块的上边框 */  
 list-style:none;   
 padding:4px 5px 3px 5px;   
 }   
 
.tab li{   
display:inline; /* 【重点】让li横向排列。即使不浮动也会横向排列。可以删除看看效果 */  
 font-size:16px;   
 }   
.tab li a{   
    padding:3px 4px; /* 因为没有固定高度，所以用填充来调整显示效果。 */  
    border:1px solid #ccc;  /* 菜单项的边框 */  
    color:#888;   
    border-bottom:none; /* 底部无边框 */  
    text-decoration:none;   
    background:#f7f7f7   
}   
/*----------------------- 鼠标经过时候的菜单样式 */  
.tab li a:hover{   
    background:#fff;   
}   
/*----------------------- 选中时候的样式 */  
.tab li.no a{   
    background:#fff;   
    border-bottom:none; /*  隐藏菜单项的底部边框 */  
    position:relative;  /* 【重点】菜单项里面的连接使用了相对定位 */  
    top:1px;            /* 【重点】相对于外层顶部为1像素，正好是底部边框的像素。所以就遮住了ul的底部边框 */  
    color:#000000;   
    font-weight:bold   
}   
/*----------------------- 模块色彩样式调用 */  
.sy1,.sy1 li a{ border-color:#6699CC;}   
.sy1 li a{ background:#DBF5FD}   
.sy2,.sy2 li a{ border-color:#FF6600;}   
.sy2 li a{ background:#FFCC00}   
  
</style>   


<script type="text/javascript">   
function tab(a,b,c)   
{   
    for(i=1;i<=b;i++){   
        if(c==i)   
        {   
        // 判断选择模块   
        document.getElementById(a+"_mo_"+i).style.display = "block";  // 显示模块内容   
        document.getElementById(a+"_to_"+i).className = "no";   // 改变菜单为选中样式   
        }   
        else{   
        // 没有选择的模块   
        document.getElementById(a+"_mo_"+i).style.display = "none"; // 隐藏没有选择的模块   
        document.getElementById(a+"_to_"+i).className = "q";  // 清空没有选择的菜单样式   
        }   
    }   
}   

function changeCompany(op)
{
   
    if (op== 'C')
    {
        str = document.getElementById("<%=Txb_Company.ClientID%>").value;
        document.getElementById("<%=Txb_Org.ClientID%>").value=str;
        document.getElementById("<%=Txb_Shop.ClientID%>").value=str;
        document.getElementById("<%=Txb_Persion.ClientID%>").value=str;
    } else if (op== 'O')
    {
        str = document.getElementById("<%=Txb_Org.ClientID%>").value;
        document.getElementById("<%=Txb_Company.ClientID%>").value=str;
        document.getElementById("<%=Txb_Shop.ClientID%>").value=str;
        document.getElementById("<%=Txb_Persion.ClientID%>").value=str;
    } 
     else if (op== 'S')
    {
        str = document.getElementById("<%=Txb_Shop.ClientID%>").value;
        document.getElementById("<%=Txb_Company.ClientID%>").value=str;
        document.getElementById("<%=Txb_Org.ClientID%>").value=str;
        document.getElementById("<%=Txb_Persion.ClientID%>").value=str;
    }  else if (op== 'P')
    {
        str = document.getElementById("<%=Txb_Persion.ClientID%>").value;
        document.getElementById("<%=Txb_Company.ClientID%>").value=str;
        document.getElementById("<%=Txb_Shop.ClientID%>").value=str;
        document.getElementById("<%=Txb_Org.ClientID%>").value=str;
    } 
    
    
}   

</script>   

</head>
<body>



    
<FORM id="form1" runat="server">
    
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
    </asp:ScriptManager>
    
<DIV id=u>
    <div id="div_LoginOk" runat="server">
        
        <A href="UserInfo.aspx" name=tj_login>用户信息</A>
        &nbsp;|&nbsp;
        <A href="Logout.aspx" name=tj_login>注销</A>
    </div>
    <div id="div_NoLogin" runat="server">
        <A href="Login.aspx" name=tj_login>登录</A>
    </div>

    
</DIV>


<DIV  id=m align="center">

<P id=lg align="center">

<IMG height=129 src="Images/baidu_sylogo.gif" width=270 useMap=#mp>
<MAP name=mp><AREA title="点此进入 百度的空间" shape=RECT target=_blank coords=40,25,230,95 href="http://hi.baidu.com/baidu/">
</MAP>
</P>

<P id=nv>
<div class="page">   

 <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                
    <ul class="tab">   
    <li id="tab_to_1" class="no"><a href="#" onmouseover="tab('tab',4,1)">公&nbsp;&nbsp;司</a></li>   
    <li id="tab_to_2"><a href="#" onmouseover="tab('tab',4,2)">组&nbsp;&nbsp;织</a></li>   
    <li id="tab_to_3"><a href="#" onmouseover="tab('tab',4,3)">商&nbsp;&nbsp;铺</a></li>   
    <li id="tab_to_4"><a href="#" onmouseover="tab('tab',4,4)">个&nbsp;&nbsp;人</a></li>   
    </ul>   
    
    
                </ContentTemplate>
               

                </asp:UpdatePanel>
                
    <div class="tab_mo">   
        <div id="tab_mo_1" style="TEXT-ALIGN: left" class="fm"> 
          
          <table>
            <tr>
                <td>
             
                
                    <asp:TextBox ID="Txb_Company" runat="server" MaxLength="100" CssClass="kw" onblur="changeCompany('C');" ></asp:TextBox>
                    
                    <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="Txb_Company"
                        ServicePath="KeyFind.asmx" CompletionSetCount="10" MinimumPrefixLength="1" ServiceMethod="GetCompleteCompany">
                    </cc1:AutoCompleteExtender>

               
                
                 <asp:Button ID="Btn_SCompany" runat="server" Text="搜索" class="btn" onmousedown="this.className='btn btn_h'"  onmouseout="this.className='btn'" 
                        onclick="Btn_SCompany_Click"/>
                
                </td>
            </tr>
          </table>
            
                
        </div>   
        <div id="tab_mo_2" style="display:none;TEXT-ALIGN: left" class="fm">   
           <table>
            <tr>
                <td>
           
             <asp:TextBox ID="Txb_Org" runat="server" MaxLength="100" CssClass="kw" onblur="changeCompany('O');" ></asp:TextBox>
               
                <cc1:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" TargetControlID="Txb_Org"
                    ServicePath="KeyFind.asmx" CompletionSetCount="10" MinimumPrefixLength="1" ServiceMethod="GetCompleteCompany">
                </cc1:AutoCompleteExtender>
            
                 <asp:Button ID="Btn_SOrg" runat="server" Text="搜索" class="btn" onmousedown="this.className='btn btn_h'"  onmouseout="this.className='btn'" 
                    onclick="Btn_SOrg_Click"/>
                
                </td>
            </tr>
          </table>
        </div>   
        <div id="tab_mo_3" style="display:none;  TEXT-ALIGN: left" class="fm">   
              <table>
            <tr>
                <td>
                
              
            
                    <asp:TextBox ID="Txb_Shop" runat="server" MaxLength="100" CssClass="kw"  onblur="changeCompany('S');" ></asp:TextBox>
                <cc1:AutoCompleteExtender ID="AutoCompleteExtender3" runat="server" TargetControlID="Txb_Shop"
                    ServicePath="KeyFind.asmx" CompletionSetCount="10" MinimumPrefixLength="1" ServiceMethod="GetCompleteCompany">
                </cc1:AutoCompleteExtender>
             
              
                 
                <asp:Button ID="Btn_SShop" runat="server" Text="搜索" class="btn" onmousedown="this.className='btn btn_h'"  onmouseout="this.className='btn'" 
                    onclick="Btn_SShop_Click"/>
                </td>
            </tr>
          </table>
        </div>   
        <div id="tab_mo_4" style="display:none; TEXT-ALIGN: left" class="fm">   
            <table>
            <tr>
                <td>
             
                     <asp:TextBox ID="Txb_Persion" runat="server" MaxLength="100" CssClass="kw" onblur="changeCompany('P');" ></asp:TextBox>
                <cc1:AutoCompleteExtender ID="AutoCompleteExtender4" runat="server" TargetControlID="Txb_Persion"
                    ServicePath="KeyFind.asmx" CompletionSetCount="10" MinimumPrefixLength="1" ServiceMethod="GetCompleteCompany">
                </cc1:AutoCompleteExtender>
          
                <asp:Button ID="Btn_SPersion" runat="server" Text="搜索" class="btn" onmousedown="this.className='btn btn_h'"  onmouseout="this.className='btn'" 
                    onclick="Btn_SPersion_Click"/>
                
                </td>
            </tr>
          </table>
        </div>   
    </div>   
</div>
</P>



<P id=lm></P>

<P>
<A onmousedown="return ns_c({'fm':'behs','tab':'homepage','pos':0})" id=seth onclick="this.setHomePage('http://www.duobala.com')" href="#">把多巴拉设为主页</A>
<A onmousedown="return ns_c({'fm':'behs','tab':'favorites','pos':0})" id=setf onclick=fa(this) href="javascript:void(0)">把多巴拉加入收藏夹</A>
</P>

<P id=lh>
 <A href="#">搜索风云榜</A> | <A href="#">关于多巴拉</A> | <A href="#">About DuoBaLa</A>
</P>

<P id=cp>&copy;2011 DuoBaLa <A href="#">使用多巴拉前必读</A> <A href="# target=_blank>粤ICP证0301799号</A> <IMG src="Images/gs.gif"></P>

</DIV>


</FORM>

</body>
</html>
